﻿<Window x:Class="Bricks.MiuiThemeMaker.MiuiThemeMaker.MainWin"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:my="clr-namespace:Bricks.BaseFramework.GenericControls;assembly=BaseFramework"
        xmlns:bll="clr-namespace:Bricks.MiuiThemeMaker.BRMiuiThemeMaker;assembly=BRMiuiThemeMaker"
        Title="MIUI主题制作工具 MTZ Tool V1.00" Height="600" Width="1000" Style="{StaticResource HiddenShowWindow}" WindowStartupLocation="CenterScreen">
    <Border BorderBrush="Black" BorderThickness="2" Background="#FF707070">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <my:TitleBar Name="titleBar" WindowIcon="/MiuiThemeMaker;component/Images/Logo.png" />
            <Grid Grid.Row="1" Name="grid1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="30" />
                    <RowDefinition />
                    <RowDefinition Height="25" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition Width="0.8*" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Menu Name="menu" Grid.ColumnSpan="2" Background="#FF707070">
                    <MenuItem Name="miNew" Header="新建" Click="miNew_Click" />
                    <MenuItem Name="miOpen" Header="打开" Click="miOpen_Click" />
                    <MenuItem Name="miSave" Header="保存" Click="miSave_Click" />
                    <MenuItem Name="miSaveAs" Header="另存为" Click="miSaveAs_Click" />
                    <MenuItem Name="miOutput" Header="输出" Click="miOutput_Click" />
                    <MenuItem Name="miRevoke" Header="撤销" Click="miRevoke_Click" />
                    <MenuItem Name="miHistory" Header="历史" Click="miHistory_Click" />
                    <MenuItem Name="miCancel" Header="重做" Click="miCancel_Click" />
                    <MenuItem Name="miHelp" Header="帮助" Click="miHelp_Click" />
                    <MenuItem Name="miMi" Header="MI世界" Click="miMi_Click" />
                    <MenuItem Name="mi9Png" Header="9.PNG编辑器" Click="mi9Png_Click" />
                    <!--<MenuItem Name="miZip" Header="压缩" Click="miZip_Click" />-->
                    <!--<MenuItem Name="miUnZip" Header="解压" Click="miUnZip_Click" />-->
                    <MenuItem Name="miReLogin" Header="重新登录" />
                    <MenuItem Name="miElement" Header="元素" Click="miElement_Click" />
                </Menu>
                <Grid Grid.Column="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <CheckBox Content="全部" VerticalAlignment="Center" />
                    <CheckBox Grid.Column="1" Content="1F" VerticalAlignment="Center" />
                    <CheckBox Grid.Column="2" Content="2F" VerticalAlignment="Center" />
                    <CheckBox Grid.Column="3" Content="3F" VerticalAlignment="Center" />
                    <CheckBox Grid.Column="4" Content="4F" VerticalAlignment="Center" />
                    <Button Grid.Column="5" Content="大" />
                    <Button Grid.Column="6" Content="小" />
                </Grid>
                <GroupBox Grid.Row="1" Header="操作视图" Name="groupBox1">
                    <Grid>
                        <StackPanel>
                            <TabControl Name="tabParentPreview" VerticalAlignment="Top">
                                <TabItem Header="T1" Name="tabItem1">
                                    <Grid>

                                    </Grid>
                                </TabItem>
                            </TabControl>
                            <TreeView Grid.Row="1" Name="tvElement" Margin="1,-2,-1,-2" BorderThickness="0" SelectedItemChanged="tvElement_SelectedItemChanged">
                                <TreeView.ItemTemplate>
                                    <HierarchicalDataTemplate DataType="{x:Type bll:ElementNode}" ItemsSource="{Binding Path=Children}">
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock VerticalAlignment="Center" Text="{Binding Path=Element.Name}" />
                                            <StackPanel.ToolTip>
                                                <TextBlock VerticalAlignment="Center" Text="{Binding Path=Element.Name}" TextWrapping="Wrap" MaxWidth="200" />
                                            </StackPanel.ToolTip>
                                        </StackPanel>
                                    </HierarchicalDataTemplate>
                                </TreeView.ItemTemplate>
                            </TreeView>
                            <Button Content="新增节点" Height="23" Name="button1" Width="96" Click="button1_Click" />
                        </StackPanel>
                    </Grid>
                </GroupBox>
                <GroupBox Grid.Column="1" Grid.Row="1" Header="详细配置" Name="groupBox2">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Image Name="imgOriginal" Stretch="Fill" />
                        <Image Grid.Row="3" Name="imgModified" Stretch="Fill" />
                    </Grid>
                </GroupBox>
                <GroupBox Grid.Column="2" Grid.Row="1" Header="界面预览" Name="groupBox3">
                    <Grid Name="gridView">
                        <!--<TextBox Height="96" HorizontalAlignment="Left" Margin="54,86,0,0" Name="textBox1" VerticalAlignment="Top" Width="220" Text="这个区域根据操作试图的预览图来进行切换的，且支持放大和缩小！" TextWrapping="WrapWithOverflow" />-->
                    </Grid>
                </GroupBox>
                <StatusBar Grid.Row="2" Name="statusBar" Grid.ColumnSpan="3">
                    <TextBlock Name="tbStatus" />
                </StatusBar>
            </Grid>
        </Grid>
    </Border>
</Window>
